package com.zhang.mysqlsharding.controller;

import com.zhang.mysqlsharding.service.ITestService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description
 *
 * @author zhangFanJun
 * @date 2024-03-29 17:48
 **/
@RequestMapping("/test")
@RequiredArgsConstructor
@Slf4j
@RestController
public class TestController {

    private final ITestService testService;

    @GetMapping("/get")
    public String get(){
       return testService.get();
    }
}
